﻿YUI.add('handlebars-link-helper', function (Y) {

    Y.Handlebars.registerHelper('link', function (text, url, cssClass) {
        var html = '<a href="' + url + '" ';
        if (cssClass)
            html += ' class="' + cssClass  + '" '

        return new Y.Handlebars.SafeString(html + '>' + text + '</a>');
    });

}, '0.0.0.1', { requires: ['handlebars'] })

